package com.hjm.project.AgentApplyTailmoney.AgentApplyTailmoney.service;

import java.util.List;
import java.util.Map;

import com.hjm.project.AgentApplyTailmoney.AgentApplyTailmoney.domain.AgentApplyTailmoney;
import org.springframework.web.multipart.MultipartFile;

/**
 * 服务商尾款充值抵扣Service接口
 * 
 * @author AgentApplyTailmoney
 * @date 2020-11-27
 */
public interface IAgentApplyTailmoneyService 
{
    /**
     * 查询服务商尾款充值抵扣
     * 
     * @param id 服务商尾款充值抵扣ID
     * @return 服务商尾款充值抵扣
     */
    public AgentApplyTailmoney selectAgentApplyTailmoneyById(Long id);

    /**
     * 查询服务商尾款充值抵扣列表
     * 
     * @param agentApplyTailmoney 服务商尾款充值抵扣
     * @return 服务商尾款充值抵扣集合
     */
    public List<AgentApplyTailmoney> selectAgentApplyTailmoneyList(AgentApplyTailmoney agentApplyTailmoney);

    public List<AgentApplyTailmoney> selectAgentApplyTailmoneyLists(AgentApplyTailmoney agentApplyTailmoney);


    /**
     * 新增服务商尾款充值抵扣
     * 
     * @param agentApplyTailmoney 服务商尾款充值抵扣
     * @return 结果
     */
    public int insertAgentApplyTailmoney(AgentApplyTailmoney agentApplyTailmoney);

    /**
     * 修改服务商尾款充值抵扣
     * 
     * @param agentApplyTailmoney 服务商尾款充值抵扣
     * @return 结果
     */
    public int updateAgentApplyTailmoney(AgentApplyTailmoney agentApplyTailmoney);

    /**
     * 批量删除服务商尾款充值抵扣
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    public int deleteAgentApplyTailmoneyByIds(String ids);

    /**
     * 删除服务商尾款充值抵扣信息
     * 
     * @param id 服务商尾款充值抵扣ID
     * @return 结果
     */
    public int deleteAgentApplyTailmoneyById(Long id);


    /**
     * 获取服务商尾款
     * @return 结果
     */
    public List<Map> findAgentPage(Map param);

    public int saveApplyTMoney(AgentApplyTailmoney applyTailmoney, MultipartFile[] imgFile) throws Exception;

}
